package com.fenqing.utils;

import cn.hutool.json.JSONUtil;

/**
 * @author fenqing
 */
public class StringToCharArrayEncoder implements Encoder<String, char[]> {

    public StringToCharArrayEncoder() {
    }

    @Override
    public char[] encoder(String input) {
        return (char[]) JSONUtil.parseArray(input).toArray(char[].class);
    }
}